#ifndef CLIENTSOCKET_H
#define CLIENTSOCKET_H

#include <QTcpSocket>
#include <QObject>
/**
 * 服务端存放的 连接客户端的socket
 * @brief The ClientSocket class
 */
class ClientSocket : public QTcpSocket
{
    Q_OBJECT
public:
    ClientSocket(qintptr handle,  QObject * server = nullptr);


signals:
      void clientDisconnected(ClientSocket *);

      void receiveData(ClientSocket *, QString msg);
public slots:
    //有数据可读
    void slotReadClientData();
    //客户端连接断开
    void slotClientDisconnected();


private:
};

#endif // CLIENTSOCKET_H
